﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/Manager.Master" AutoEventWireup="true"
    CodeBehind="Detail.aspx.cs" Inherits="Enterprise.UI.Web.Manage.Role.Detail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript" src="../Common/js/jquery-1.7.min.js"></script>
    <script language="javascript" type="text/javascript" src="../Common/js/jquery.HooRay/jquery.HooRay.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <Ent:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server" HeadTitleTxt="角色权限">
    </Ent:HeadMenuWebControls>
    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="tableDetail">
        <tr>
            <td height="25" align="right" width="160">
                角色名称：
            </td>
            <td align="left">
                <asp:Label ID="Role_Name" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td height="25" align="right">
                角色说明：
            </td>
            <td align="left">
                <asp:Label ID="Role_Remark" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
    <div id="usual1" class="idTabs">
        <ul>
            <li><a href="#tab1" class="selected">角色权限</a></li>
            <li><a href="#tab2">拥有角色人员</a></li>
        </ul>
        <div id="tab1" style="display: block;">
            <div id="rightsTable" ondblclick="javascript:Check_CheckBox(this);">
                <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                    <asp:Repeater ID="Module_Main" runat="server" OnItemDataBound="Module_Main_ItemDataBound">
                        <ItemTemplate>
                            <tr class="table_title">
                                <td colspan="9">
                                    <%# Eval("mName")%>
                                </td>
                            </tr>
                            <tr class="table_body" align="center">
                                <td width="25%" align="left">
                                    栏目名称
                                </td>
                                <td>
                                    查看
                                </td>
                                <td>
                                    新增
                                </td>
                                <td>
                                    修改
                                </td>
                                <td>
                                    删除
                                </td>
                                <td>
                                    排序
                                </td>
                                <td>
                                    打印
                                </td>
                                <td>
                                    备用A
                                </td>
                                <td>
                                    备用B
                                </td>
                            </tr>
                            <asp:Repeater ID="Module_Sub" runat="server" OnItemDataBound="Module_Sub_ItemDataBound">
                                <ItemTemplate>
                                    <tr class="table_none" align="center">
                                        <td align="left">
                                            &nbsp;&nbsp;└<%# Eval("mName")%>
                                        </td>
                                        <td>
                                            <asp:Literal runat="server" ID="Lab2_Txt"></asp:Literal>
                                        </td>
                                        <td>
                                            <asp:Literal runat="server" ID="Lab4_Txt"></asp:Literal>
                                        </td>
                                        <td>
                                            <asp:Literal runat="server" ID="Lab8_Txt"></asp:Literal>
                                        </td>
                                        <td>
                                            <asp:Literal runat="server" ID="Lab16_Txt"></asp:Literal>
                                        </td>
                                        <td>
                                            <asp:Literal runat="server" ID="Lab32_Txt"></asp:Literal>
                                        </td>
                                        <td>
                                            <asp:Literal runat="server" ID="Lab64_Txt"></asp:Literal>
                                        </td>
                                        <td>
                                            <asp:Literal runat="server" ID="Lab128_Txt"></asp:Literal>
                                        </td>
                                        <td>
                                            <asp:Literal runat="server" ID="Lab256_Txt"></asp:Literal>
                                        </td>
                                    </tr>
                                    <asp:Repeater ID="Module_Sub1" runat="server" OnItemDataBound="Module_Sub1_OnItemDataBound">
                                        <ItemTemplate>
                                            <tr class="table_none" align="center">
                                                <td align="left">
                                                    &nbsp;&nbsp;&nbsp;&nbsp;└
                                                    <%# Eval("mName")%>
                                                </td>
                                                <td>
                                                    <asp:Literal runat="server" ID="Lab22_Txt"></asp:Literal>
                                                </td>
                                                <td>
                                                    <asp:Literal runat="server" ID="Lab24_Txt"></asp:Literal>
                                                </td>
                                                <td>
                                                    <asp:Literal runat="server" ID="Lab28_Txt"></asp:Literal>
                                                </td>
                                                <td>
                                                    <asp:Literal runat="server" ID="Lab216_Txt"></asp:Literal>
                                                </td>
                                                <td>
                                                    <asp:Literal runat="server" ID="Lab232_Txt"></asp:Literal>
                                                </td>
                                                <td>
                                                    <asp:Literal runat="server" ID="Lab264_Txt"></asp:Literal>
                                                </td>
                                                <td>
                                                    <asp:Literal runat="server" ID="Lab2128_Txt"></asp:Literal>
                                                </td>
                                                <td>
                                                    <asp:Literal runat="server" ID="Lab2256_Txt"></asp:Literal>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr id="ButtonTr_End" visible="false" runat="server">
                        <td colspan="9" align="right">
                            <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="确定" OnClick="Button1_Click" />
                            <input id="Reset1" class="button_bak" type="reset" value="重填" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="tab2" style="display: none;">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr>
                    <td class="table_body" align="center">
                        添加人员
                    </td>
                    <td class="table_none">
                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td width="100">
                                    <table>
                            <tr>
                                <td>
                                    <asp:DropDownList ID="tb_Dept" runat="server" AutoPostBack="true" OnSelectedIndexChanged="tb_Dept_SelectedIndexChanged">
                                    </asp:DropDownList></td>
                                <td>
                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="tb_Dept" EventName="SelectedIndexChanged" />
                                        </Triggers>
                                        <ContentTemplate>
                                            <asp:DropDownList ID="tb_User" runat="server">
                                            </asp:DropDownList>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                        </table>
                                </td>
                                <td align="left">
                                    <asp:Button ID="Button2" runat="server" Text="添加" CssClass="menubar_button" Width="50px"
                                        Height="25px" OnMouseOut="javascript:MenuOnMouseOver(this);" OnMouseOver="javascript:MenuOnMouseOut(this);"
                                        OnClick="Button2_OnClick" OnClientClick="return confirm('确定要为人员设置改角色？')" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center" class="table_body">
                        拥有角色人员
                    </td>
                    <td align="left" class="table_none">
                        <asp:Label ID="labelUser" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <script type="text/javascript">
        $("#usual1 ul").idTabs(); 
    </script>
</asp:Content>
